package com.bw.trade.fegin;

import com.bw.core.vo.FindOneBankResVo;
import com.bw.core.vo.TbBankCardAuthVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "credit-user-web")
public interface FeginUserClient {

    @GetMapping("/user/tbBankCardAuthFindById")
    public TbBankCardAuthVo tbUserFindById(@RequestParam(value = "id") long id);

    /**
     * 查询银行卡信息的方法
     * @param userId
     * @return
     */
    @GetMapping("/findMyBank")
    FindOneBankResVo findBankResVo(@RequestParam("userId") Long userId);
}
